package org.cid54.android.jshopper.model;

/**
 *
 * @author fgo
 */
public class ShoppingList extends SuperEntityWithName {

    private String userGroupName;

    public String getUserGroupName() {
        return userGroupName;
    }

    public void setUserGroupName(String userGroupName) {
        this.userGroupName = userGroupName;
    }

    @Override
    public boolean equals(Object o) {
        return o instanceof ShoppingList && ((ShoppingList) o).getName().equals(this.getName());
    }

    @Override
    public int hashCode() {
        return this.getName().hashCode();
    }

    @Override
    public String toString() {
        return this.getName();
    }
}
